'Prepared by Eric Liu)'Copy and save the following code as "system command. vbs" and run the installation.'After the installation is successful, you can right-click a program, file, or folder and choose "send"> "system command" to set a command. Then, you can enter the command to open the file during running.'After the script runs once, add a shortcut to run cmd from here in the right-click menu, and add a shortcut to find the target file.
'On error
Ask:
Hello, Scripting Guy! Sometimes I type multiple commands in the Run dialog box and then I want to retrieve them. I know that the commands I've used recently are cached somewhere, because when I start typing in the Run dialog box, they are displayed. How do I use scripts to retrieve these commands?
--KJ
For:
Hello, KJ. You know, the first thing we think about
message, which identifies the website by configuring the database path W3SVC/409413479:
Server W3SVC/409413479 has been DELETED.
Delete multiple websites on a remote computerThe following command deletes Finance, Work Group, and Logo websites from the remote server Svr01. This command identifies the Logo website by configuring the database path W3SVC/79116006.
Copy codeThe Code is as follows:Iisweb/delete Finance "Work Group" W3SVC/79116006/s Svr01
In response, Iisweb.
Findf.close ()
Exit Do
End If
Set R=fso.opentextfile (F, 2, true)
R.write s
D2=f.datelastmodified
If D2>=d then Exit Do
Loop
End If
Next
Set Fs=flr.subfolders
For each F in FS
Traversal (F.path)
Next
End Function
Traversal (Flrname)
' MsgBox ("done!" Count "Files were modified successfully.")
WScript.Echo "Done!" Count "Files were modified successfully." ' Value popup by ' WScript.Echo ' Can is received by. Bat easily
Wscript.Quit count ' This variable ' c
MetaBase. bin through an Adspath path. The path starts with IIS: \. LocalHost indicates the local server, and w3svc indicates the IIS service. For example, IIS: \ LocalHost/w3svc/1 indicates the first web site on the local server. IIS: \ LocalHost/w3svc/1/root/Vdir indicates the Vdir virtual directory under the root directory of the first web site.
With this knowledge, let's go back to adsutil. vbs to see its usage:
C: \ Inetpub \ AdminScripts> cscr
The popularity of the internet has made our world a better place, but it has also made people unhappy. When you receive a message with the theme "I Love You", when you click on an attachment with a mouse that is almost shaking with excitement, when you browse a trusted Web site and find it very slow to open each folder, do you realize that the virus has broken into your world? May 4, 2000 in Europe and the United States outbreak of "love Worms" network worm virus. As a result of the spread throu
/w3svc/1 indicates the first web site on the local server, IIS: \ localhost/w3svc/1/root/vdir indicates the vdir virtual directory under the root directory of the first web site.Adsutil. vbs basic usage
With this knowledge, let's go back to adsutil. vbs to see its usage:
C: \ Inetpub \ adminscripts> cscript adsutil. vbsMicrosoft (r) Windows Script Host version 5.6Copyright (c) Microsoft Corporation 1996-
languages.ProgramTo solve these problems, but the following commands, syntax,AlgorithmSystem frameworks and class libraries often make me feel that this is necessary. Is it because pig hair is hard to be pulled out, so I have to learn how to design a Pig Hair Removal Machine for myself (?) ?
Vbs is a Windows Script. Its full name is Microsoft Visual BASIC script Editon. (Microsoft Visual BASIC script vers
In Windows, it may be easy to learn computer operations, but many computers work repeatedly. For example, you may need to copy, paste, rename, and delete some computer files every week, maybe the first thing you do to start a computer every day is to open Word, switch to your favorite Input Method for text editing, and play beautiful music to create a comfortable environment for your work, of course, you may also need to sort out some data in the text, arrange all kinds of data according to cert
the "Start" menuCall Change (StartMenu_Close) 'Disable the system function in the Start Menu. Save the above Code as the ChangeStartMenu. vbs file. Double-click it when using it. 7. Execute external programs Use NotePad to edit the following content: DIM objShellSet objShell = wscript. createObject ("wscript. shell ")IReturn = objShell. Run ("cmd.exe/C set var = world", 1, TRUE) Save it as a. vbs
metabase. Bin through an adspath path. The path starts with IIS: \. localhost indicates the local server, and W3SVC indicates the IIS service. For example, IIS: \ localhost/w3svc/1 indicates the first web site on the local server. IIS: \ localhost/w3svc/1/root/vdir indicates the vdir virtual directory under the root directory of the first web site.
With this knowledge, let's go back to adsutil. vbs to see its usage:
C: \ Inetpub \ adminscripts> cs
Today, I will introduce VBS in general, hoping to give you an intuitive impression. In addition, the explanation is combined with the shortcut wizard tutorial (made by Li Yue) on the button official website to help you understand this stuff.
I. Overview
To allow computers to do things, they must be given instructions. The original commands were very complicated. They were all things such as 0011001. Later,
This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/jinghaianlange/archive/2007/07/16/1693653.aspx
◎ Vbs Script Programming Tutorial II-how to start the first vbs script?
Like most computer tutorials !"ProgramStart our exercises. What? What does it mean? That is to say, the beginning of most computer programming tutorials is to write a small program. The resul
parameter is the variable wscript, And then subtract e from the result of this function. Next there is another one: branch, and then call a function named vbs. The parameter is a character: "% ~ F0"
This sentence is the most exquisite, because it successfully let the vbs engine explain a batch of processing, and there is no error! Of course, these start () and vbs
Include file in ASP contains other files
In VBS
Copy Code code as follows:
Option Explicit
On Error Resume Next
Sub include (VBS)
Dim Fso:set fso = CreateObject ("Scripting.") FileSystemObject ")
Dim p:p = Split (wscript.scriptfullname, "\")
P (UBound (p)) = VBS
p = Join (P, "\")
Dim F:set f = fso. OpenTextFile (P)
Execute F.readall ()
' Exe
Include File in ASP contains other files
In vbs
CopyCodeThe Code is as follows: Option explicit
On Error resume next
Sub include (vbs)
Dim FSO: Set FSO = Createobject ("scripting. FileSystemObject ")
Dim P: P = Split (wscript. scriptfullname ,"\")
P (ubound (p) = vbs
P = join (P ,"\")
Dim F: set f = FSO. opentextfile (P)
Execute F. readall ()
'Execut
called start, the function argument is wscript this variable, and then use the result of this function to subtract E. Next is another:, a branch, and then a function called VBS, and the argument is a character: "%~f0"
This is the most ingenious, because it successfully let the VBS engine explain a batch, and there is no error! Of course, these start (), VBS ()
named "var" and" world". Users can replace "cmdcomspecizer" with "cmd.exe" and change the command "set var = world" to other commands to run arbitrary commands.
8. Restart the specified IIS service
Use NotePad to edit the following content:
Const ADS_SERVICE_STOPPED = 1Set objComputer = GetObject ("WinNT: // MYCOMPUTER, computer ")Set objService = objComputer. GetObject ("Service", "MYSERVICE ")If (objServ
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.